changed the time calculation again
added function to move days