calc prof/loss