Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display Calculated Total with Formatting #692

Closed
Swapnil-Dhamal opened this issue Feb 18, 2025 · 2 comments · Fixed by #693
Closed

Display Calculated Total with Formatting #692

Swapnil-Dhamal opened this issue Feb 18, 2025 · 2 comments · Fixed by #693

Comments

@Swapnil-Dhamal
Copy link
Contributor

Description
Enhance the Monthly Rent Calculator by displaying the total rent in a well-formatted, user-friendly manner. This feature ensures better readability and usability for users calculating their rent.

Problem Statement
Currently, the calculator provides a plain numerical total without formatting. Users may find it difficult to quickly interpret the final amount, especially when large numbers or decimals are involved. Additionally, the breakdown of different costs (rent, utilities, other fees) is not visually emphasized, making it harder to understand the overall calculation.

Proposed Solution

Auto-Formatted Currency Output

Convert numbers into properly formatted currency (e.g., $1,200.50 instead of 1200.5).
Dynamically update the total as the user enters values.
Breakdown Summary Section

Show a breakdown of the total rent in a structured summary. Example:
🏠 Rent Summary

Base Rent: $1,200
Power Bill: $50
Water Bill: $30
Other Fees: $20
Total Rent: $1,300 ✅
Optional Expand/Collapse Breakdown

Allow users to toggle the breakdown details if they only need the final total.
Currency Selector (Optional Enhancement)
Let users choose their currency (USD, EUR, INR, GBP, etc.).

Alternatives Considered

Keeping the current unformatted numerical total (less readable).

Image

Showing only the total amount without a breakdown (less informative).

Checklist
✅ I have checked existing issues, and this feature request is not a duplicate.
✅I have starred this repository.
✅ I am willing to help implement this feature (optional).

Copy link

Congratulations, @Swapnil-Dhamal! 🎉 Thank you for creating your issue for Rentalog. Your contribution is greatly appreciated and we look forward to working with you to resolve the issue. Keep up the great work! Should you have any queries or require guidance, do not hesitate to ask.

@Swapnil-Dhamal
Copy link
Contributor Author

@gauravsingh1281 Can you assign this to me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants