changed 86400.0 to SECPERDAY