Updating instantaneous cost calculations