fixed time calculations and made it prettier and added license