I am not able to calculate GST in our purchase invoice

When I create a purchase invoice and i add the custome rate like the percent based on which we have to leive the gst charges on NET TOTAL but in our cse it is not getting calculated after entering the Rate.