Shortfall implementatin for sell order

The quick computation is reversed for sell orders. How would that affect the formula for Realised profit/ loss, Missed trade opporturnity cost and Delay costs? Recap: Realised profit/ (loss) = Execution price less Previous day close price*/ Benchmark price x Share filled/ Shares ordered MTOC = Final close price for bal unfilleds order cancelled less benchmark price/ Benchmark price x Shares unfilled / Shares ordered Delay costs = Previous day close price* less benchmark price / Benchmark price x Shares filled / Shares ordered. * Previous day close price is the closing share price on the day preceding the day the orders is executed (partial).