Sloppy stuff. handle midnight, time overflow. This is sloppy and needs refactoring. Messy. wow. much awful. very no.