fix max value, now it works with seconds > 43200