I have a small application that calculates time left over in a day after events.
The problem I have is that if either the starting time or ending time is 4.10 or 5.10 I get slightly incorrect answer.
if the only event starts at 4 and ends at 4.10, it outputs that I have 23 hours and 51 minutes free (instead of 50 minutes)
Or if the event is 5.10 until 6, it outputs 23 hours and 9 minutes.
These are the only times that give incorrect answers.
I can post my code if its necessary, but was just wondering if this is a common problem easily overcome?