GetCurrentRatePeriod add date checking logic