fixed purge time calculation