The formula is the rate of gold per gram x weight of gold x purity grade of the gold. The final price will attract making charges, hallmarking charges (if any) and GST at 3% from the jeweller.