GST Calculator
GST Calculator Key features:
- Input Validation Logic : Validate amount (minimum ₹1), GST rate (0% to 28% standard rates), and calculation type (inclusive/exclusive) with real-time error display.
- GST Calculation Formula : Implement GST = (Amount × GST Rate)/100 for exclusive, and GST = Amount - (Amount/(1 + GST Rate/100)) for inclusive calculations.
- Results Formatting : Display calculated values showing original amount, GST amount, and total amount in Indian currency format using toLocaleString('en-IN') with proper ₹ symbol placement.
- Error State Management : Hide all error messages on calculation start, show specific field errors for invalid amounts or rates, and prevent calculation if validation fails.
- User Experience Features : Include GST rate dropdown with common rates (5%, 12%, 18%, 28%), toggle for inclusive/exclusive calculation, and animated results appearance.
