Periods function

Set a Period and Get its Time Interval