Update calcProfitLoss - consolidated for loops reducing by one

Signed-off-by: Mark Tompkins <mtompkins@firmusgrp.com>