Program to calculate GST from original and net prices | javascript Program to compute GST from original and net prices . ; return value after calculate GST % ; Driver code
function Calculate_GST ( org_cost , N_price ) { return ( ( ( N_price - org_cost ) * 100 ) / org_cost ) ; } var org_cost = 100 ; var N_price = 120 ; document . write ( " " + Calculate_GST ( org_cost , N_price ) + " " ) ;