calc time for a 24h day