Added some required utility functions

Added functions to calculate total days in a year, to get the number of days in a particular month of a year and calculate total number of days between given dates.