Overview
Due dates are essential for effective payment tracking in Pagosapp. By setting due dates for your payments, you enable the automatic status calculation system that alerts you when payments are due soon or overdue.Setting a Due Date
To set a due date for a payment:Open Date Picker
Click the pencil icon (edit button) next to the payment name to open the date picker.
Select Date
Choose the due date from the calendar interface. The date picker will close automatically after selection.
Date Picker Component
The date picker is implemented usingreact-datepicker in src/components/DatePickerElement.jsx:5-19:
Date Storage
Due dates are persisted in localStorage with the following structure:Due dates are stored per payment per month, allowing you to set different due dates for the same recurring payment in different months.
Date Difference Calculation
The system calculates the number of days until the due date usingsrc/utils/dateUtils.js:1-7:
Understanding the Calculation
- Positive value: Days remaining until due date
- Zero: Due today
- Negative value: Days overdue
Updating Due Dates
You can update a due date at any time:- Click the pencil icon next to the payment
- Select a new date from the calendar
- The status indicator will update immediately
- The new date is saved automatically
Status Indicator Thresholds
The visual indicators are triggered based on these thresholds:Status Thresholds
- More than 3 days away: Gray indicator
- 3 days or less: Orange indicator (due soon)
- 0 days or negative: Red indicator (overdue)
- Payment marked as complete: Green indicator (regardless of date)
Due Date Display
Due dates are displayed in two places:1. Payment List Item
TheStartDateElement component shows the due date next to each payment:
2. Payment Modal
The payment details modal displays the due date in a formatted manner:Best Practices
Set Due Dates in Advance
Set Due Dates in Advance
Set due dates as soon as you know them, preferably at the beginning of each month. This gives you maximum visibility into upcoming obligations.
Use Actual Due Dates
Use Actual Due Dates
Always use the actual payment due date, not when you plan to pay. The 3-day warning gives you time to prepare the payment.
Update for Varying Dates
Update for Varying Dates
Some payments may have different due dates each month. Update these dates monthly to ensure accurate tracking.
Review Weekly
Review Weekly
Check your payment dashboard at least weekly to stay informed about upcoming due dates and adjust your payment schedule accordingly.
Payment Date vs Due Date
Pagosapp distinguishes between two types of dates:
- Due Date (Fecha de vencimiento): When the payment must be made
- Payment Date (Fecha de pago): When you actually made the payment
Common Scenarios
Monthly Bills
Set the same due date each month (e.g., the 15th) for bills that are consistently due on that day.
Quarterly Payments
Update due dates quarterly for payments that occur every few months, like property taxes or insurance.
Annual Payments
Set the due date once per year for annual obligations like vehicle registration.
Variable Due Dates
Update due dates monthly for bills with varying due dates, like credit cards with changing statement dates.
Troubleshooting
Related Features
Payment Tracking
Understand how payment statuses are tracked and displayed
Month Navigation
Learn how to navigate between months