Fix the logic calculating purchase paid amount