Bug Fix rate inverting duration

When constructing a Rate object with a duration as argument, it is the expected period duration, not a frequency.