Added functions to calculate several events in the future
Fixed bugs in time calculation