substitute day and period