add time to quartic equation