Search code examples
mathcomputationgstreamer

Compute cost of an Item?


im not sure if i say it right.

my question is how can i get the COST of an item if then given is the Net and the GST?


Solution

  • The basic equation is:

    net = cost + (gst * cost) = cost * (1.0 + gst)
    

    (with gst expressed as a decimal)

    Therefore by algebra (dividing both sides by 1.0 + gst) you have:

    cost = net / (1.0 + gst)