define period using to dates
bug fixes
bug fixes
Merge pull request #38 from qcode-software/cast_period

Cast period