-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprd.txt
More file actions
231 lines (149 loc) · 4.19 KB
/
prd.txt
File metadata and controls
231 lines (149 loc) · 4.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
# Product Requirements Document (PRD)
## 1. Product Overview
**Product Name (Working Title):** Trip Cost Split
Trip Cost Split is a simple, mobile-first web application that helps groups (friends, students, coworkers, or families) fairly split fuel costs for road trips. Users input trip and vehicle details, and the app instantly calculates the total fuel cost and an equal per-person split. The output is formatted as clean, copyable text that can be shared via WhatsApp, text messages, or any chat app.
The product focuses on **speed, clarity, and shareability**, with zero friction to use.
---
## 2. Goals & Objectives
### Primary Goals
* Allow users to calculate trip fuel costs quickly and accurately
* Provide a fair and transparent cost split among travelers
* Enable easy sharing of results as plain text
### Success Metrics
* Time to first calculation < 30 seconds
* High copy/share usage (Copy button clicks)
* Low bounce rate on mobile devices
---
## 3. Target Users
### Primary Users
* Friends going on road trips
* College students sharing rides
* Office colleagues carpooling
### Secondary Users
* Ride owners who want to explain costs clearly
* Budget-conscious travelers
User traits:
* Mobile-first
* Non-technical
* Wants quick answers, not complex setup
---
## 4. User Problem
Users currently:
* Manually calculate fuel costs using rough estimates
* Argue or feel awkward about “who owes how much”
* Lack a clean, neutral format to share cost breakdowns
**Problem Statement:**
> There is no fast, simple, and shareable way to fairly split fuel costs for trips.
---
## 5. Core Features (MVP)
### 5.1 Trip Input Form
Users can input:
* Distance (km)
* Vehicle mileage (km/l)
* Fuel price (₹/l)
* Number of people in vehicle (including owner)
All fields are:
* User-editable
* Required
* Validated (no negative or zero values)
---
### 5.2 Cost Calculation Logic
**Formula:**
* Fuel Required = Distance / Mileage
* Total Cost = Fuel Required × Fuel Price
* Per Person Cost = Total Cost / Number of People
Rounding:
* Total cost shown with 1 decimal
* Per person cost rounded to nearest whole number
---
### 5.3 Results Display
Displayed clearly below the form:
* Total Cost
* Distance
* Mileage
* Fuel Price
* Number of People
* Per-person contribution
---
### 5.4 Copyable Share Text (Key Feature)
A pre-formatted, selectable text block:
```
TRIP COST SPLIT
---------------
Total Cost: ₹322.2
Distance: 120 km
Mileage: 40 km/l
Fuel Price: ₹107.4/l
People: 3
SPLIT:
Each person pays: ₹107
(3 people paying including owner)
```
Includes:
* One-tap **Copy to Clipboard** button
* Optimized for WhatsApp & SMS sharing
---
## 6. User Flow
1. User lands on homepage
2. Enters trip details
3. Clicks “Calculate” (or auto-calculates)
4. Sees cost breakdown
5. Copies and shares result
---
## 7. UX & UI Requirements
### Design Principles
* Minimal
* Friendly
* Neutral (no judgment, no ownership bias)
### Styling (Reference-Based)
* Background: Cream (`bg-cream`)
* Text color: Ink (`text-ink`)
* Font:
* Body: Inter
* Monospace sections: Aeonik Mono / Space Mono
* Layout:
* Centered column layout
* Mobile-first
* Max-width container on desktop
### Interaction
* Instant feedback on input changes
* No page reloads
* Accessible tap targets
---
## 8. Technical Requirements
### Frontend
* HTML + CSS (Tailwind-style utility classes)
* JavaScript for calculations & clipboard
* Fully responsive
### No Backend Required (MVP)
* All calculations run client-side
* No authentication
* No data storage
---
## 9. Edge Cases & Validation
* Mileage cannot be zero
* Number of people must be ≥ 1
* Fuel price must be positive
* Large distances handled gracefully
---
## 10. Future Enhancements (Post-MVP)
* Multiple vehicles support
* Split excluding owner
* Currency selector
* Save/share via link
* PWA (offline support)
* Expense history
---
## 11. Out of Scope (MVP)
* Payments
* User accounts
* Trip history
* Maps & routing
---
## 12. Launch Criteria
* Accurate calculations
* Works on major mobile browsers
* Copy feature works reliably
* Clear UI with no instructions needed
---
**This PRD defines a focused, high-utility MVP designed for rapid adoption and everyday use.**