Fixed bad math in the Delta calculation