Recalculate c, thanks to Dana Jacobsen