Rate Period from and rates period to calculation