PHP COMBUTE PRECIO MENOS descuento

$percent = (($rowx->Orgprice - $rowx->SalePrice)*100) /$rowx->Orgprice ;
Gifted Goldfinch