Time does not work in tens. There are 60 seconds in a minute and 60 minutes in an hour, so you cannot add or subtract times as if they were decimals. Work in hours and minutes separately, or count on in stages.
The 24-hour clock runs from 00:00 (midnight) to 23:59. From 1:00 pm onwards, the 24-hour time is 12 more than the pm time, so 3:40 pm is 15:40. A journey that passes midnight starts again from 00:00.
To find how long something lasts, count on from the start to the next whole hour, then to the last whole hour, then to the end time. In a timetable, read along the row of the place you want.