changed calculation formatting
added timedifference calculations