Added utlity to calculate records from a schedule