View Real-Time Reimbursement Amount Before Submitting
Transparency in reimbursement calculations builds trust between peer mentors and their organizations. As the mentor enters or adjusts the distance value, the reimbursement display should recalculate instantly using the org-specific rate fetched from the rate config repository. This removes uncertainty and prevents under- or over-claiming. The display should clearly show the rate applied (e.g., 'NOK 4.90/km × 23 km = NOK 112.70') so the mentor understands the basis of the figure.
User Story
Acceptance Criteria
- Given I am on the mileage entry form and the org rate has been loaded, When I type or adjust the distance value, Then the reimbursement amount updates in real time without requiring a separate action
- Given the organization uses a custom per-km rate configured in the org rate config repository, When the calculation runs, Then the displayed amount reflects that organization's specific rate, not a hardcoded default
- Given the distance field is empty or contains an invalid value, When the calculation would produce NaN or a negative result, Then the reimbursement display shows zero or a clear placeholder rather than an error
- Given the rate data cannot be fetched (e.g., offline), When the form loads, Then a cached rate from the local distance cache is used and a subtle indicator informs the user the rate may be from cache
- Given the calculated amount is displayed, When the user reviews the form, Then the rate breakdown (rate × distance = total) is visible to confirm the calculation basis
Business Value
Real-time feedback eliminates the most common source of reimbursement errors — mentors submitting incorrect distances because they could not verify the total before submission. This reduces coordinator correction overhead and increases mentor confidence in the system, supporting adoption among the target demographic which includes users with varying digital literacy levels.