Ad

GST TAX CALCULATER EASY AND ACCURATE TAX CALCULATOR

 

class GSTCalculator: def __init__(self, invoice_value, gst_rate, itc=0): self.invoice_value = invoice_value self.gst_rate = gst_rate self.itc = itc def calculate_gst_tax(self): gst_tax = (self.invoice_value * self.gst_rate) / 100 return gst_tax def calculate_net_amount(self): gst_tax = self.calculate_gst_tax() net_amount = self.invoice_value + gst_tax - self.itc return net_amount def print_invoice_details(self): gst_tax = self.calculate_gst_tax() net_amount = self.calculate_net_amount() print("Invoice Value: ", self.invoice_value) print("GST Rate: ", self.gst_rate, "%") print("Input Tax Credit (ITC): ", self.itc) print("GST Tax Amount: ", gst_tax) print("Net Amount Payable: ", net_amount) def main(): invoice_value = float(input("Enter the invoice value: ")) gst_rate = float(input("Enter the GST rate (in %): ")) itc = float(input("Enter the input tax credit (ITC): ")) calculator = GSTCalculator(invoice_value, gst_rate, itc) calculator.print_invoice_details() if __name__ == "__main__": main()

No comments:

Post a Comment

I.T.R.-1 फॉर्म के बदलाव (आकलन वर्ष 2025-26) परिचय आयकर विभाग ने आकलन वर्ष 2025-26 के लिए आईटीआर-1 (सहज) फॉर्म में कई महत्वपूर्ण बदलाव किए ...