fix: inverted for calculations