Added calculations and datetime

Added a bunch of calculation and date and time things.