Forwards and backwards
Adding GST is straightforward: the tax is the rate applied to your amount, and the total is the sum of the two. Extracting it from a total that already includes tax is where people go wrong, because subtracting the rate from the total does not work. On ₹11,800 at 18%, the base is the total multiplied by 100 and divided by 118 - that is ₹10,000, with ₹1,800 of tax. Subtracting 18% of ₹11,800 would give ₹9,676, which is wrong by over three hundred rupees.
Both directions round once, at the end, from the same unrounded intermediates. That is what makes them exact inverses of each other, which matters because a user who spots a rupee of disagreement between the two stops trusting the tool entirely.