new periodFrom and periodTo methods

Implementation for #61