Updated algorithm to calculate Delta in line with what's in my report
after a flash of inspiration, should be better overall