minor tweak to calculation formula