TOTP get expire before period

I have set the period to 900 (15 mins) and skew to 1 but the generated TOTP code get expires before it. Am I doing something wrong?