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

IPDMS 2.0 में मेडिकल डिवाइस कंपनियों के लिए नई रजिस्ट्रेशन प्रक्रिया

IPDMS 2.0 में मेडिकल डिवाइस कंपनियों के लिए नई रजिस्ट्रेशन प्रक्रिया मेडिकल डिवाइस से जुड़ी सभी कंपनियों को IPDMS 2.0 पोर्टल पर नया रजिस्ट्...