Better logic calculate time

If not done yet, you can also have a look at the official post of the “iCalendar to Voice” app, maybe there are some ideas to solve your problem.