time calculations fully working :)