adding duration and period