Reverse calculation of Quebec taxes

Amount WITH taxes
Gst
Qst
Amount BEFORE taxes