fix period duration