New delay formula-should be correct