Program to calculate GST from original and net prices | PHP Program to compute GST from original and net prices . ; return value after calculate GST % ; Driver Code
< ? php function Calculate_GST ( $ org_cost , $ N_price ) { return ( ( ( $ N_price - $ org_cost ) * 100 ) / $ org_cost ) ; } $ org_cost = 100 ; $ N_price = 120 ; echo ( " GST ▁ = ▁ " ) ; echo ( Calculate_GST ( $ org_cost , $ N_price ) ) ; echo ( " ▁ % ▁ " ) ; ? >