parking-calculator-library
v2.0.1
Published
A library to calculate parking fees based on duration, with discounts for early bird, weekend, and loyalty members.
Downloads
70
Maintainers
Readme
Parking Fee Calculator
A simple parking fee calculator that determines the parking fee based on the duration of the parking, applicable discounts, and predefined rates. It calculates the base fee, applies possible discounts (early bird, weekend, and loyalty member), and displays the total fee to the user.
Features
- Calculate Parking Duration: Based on the entry and exit times.
- Dynamic Rate Calculation: Short-term, mid-term, and long-term rates based on parking duration.
- Discount Options:
- Early Bird Discount: 20% off for entries before 9 AM.
- Weekend Discount: 10% off for parking on weekends (Saturday and Sunday).
- Loyalty Member: 5% off for registered loyalty members.
- Currency Display: The fee is calculated in Ugandan Shillings (UGX).
Getting Started
To use the Parking Fee Calculator, follow these steps:
Prerequisites
- Modern Web Browser (e.g., Chrome, Firefox, Edge).
- Basic knowledge of JavaScript and HTML.
Installation
You can install the Parking Slot Manager library via npm by running the following command:
npm install parking-calculator-library
Contact
If you have any questions, feedback, or suggestions, feel free to reach out to me:
- Name: ABESIGA BRANIA
- Email: [email protected]
I'm always open to hearing from users and developers who are interested in collaborating or have questions about the library.