Added class for date handling functions and added initial framework for rate calculation