EstiMate
A mobile-first contractor cost estimation app that uses Monte Carlo simulation to provide probabilistic risk analysis for job quotes. Built natively for iOS (SwiftUI) and Android (Jetpack Compose).
Overview
EstiMate helps tradespeople and contractors move beyond single-point estimates to understand the range of likely costs and risks. Instead of guessing a single number, you input your estimates with uncertainty levels, and the app runs thousands of simulations to show you the probability distribution of total costs.
Key Value Propositions:
- Offline-first, no login required
- Sophisticated risk analysis on mobile (usually reserved for enterprise desktop software)
- Helps contractors avoid under-quoting with statistically safe quote recommendations
- Generates professional PDF quotes for clients
Features
Core Estimation
- Project Management - Create, save, and manage multiple project estimates
- Line Items - Add materials, labor, subcontractors, and other costs
- Risk Levels - 5-tier uncertainty system:
- Certain (±2%) - Fixed/contracted prices
- Low (±8%) - Known suppliers with stable pricing
- Medium (±15%) - Standard market variability
- High (±25%) - Volatile or uncertain costs
- Wild Guess (±40%) - Unknown scope items
Duration & Travel Estimation
- Job Duration - Estimated days with complexity levels (Routine ±10% to Unknown Scope ±60%)
- Labor Configuration - Hourly rates, hours per day, extra workers
- Travel Costs - One-way travel time, traffic variability, site visits, mileage tracking
- Correlation Modeling - Duration uncertainty automatically affects travel costs
Monte Carlo Simulation
- 1,000+ iterations with convergence detection
- Skewed distribution toward overages (realistic for construction projects)
- Percentile outputs: P10, P50, P80, P90, P95
- Cost breakdown by category (Materials, Duration, Travel)
- Standard deviation and confidence level calculations
Results & Export
- Bell Curve Visualization - Color-coded histogram of cost distribution
- Quote Recommendations - Conservative (P50), Recommended (P80), Safe (P90)
- PDF Export - Professional client-facing quotes with cost breakdowns
- Share - Export via platform share sheets
Internationalization
Tech Stack
iOS
- Language: Swift
- UI Framework: SwiftUI
- Architecture: MVVM
- Min iOS: 14.0+
- Storage: UserDefaults (local only)
- PDF: PDFKit/UIGraphicsPDFRenderer
- Charts: Apple Charts framework (iOS 16.4+)
Android
- Language: Kotlin
- UI Framework: Jetpack Compose
- Architecture: MVVM with ViewModel + StateFlow
- Min SDK: 26 (Android 8.0)
- Target SDK: 34 (Android 14)
- Storage: SharedPreferences + GSON
- PDF: iText 7
- Navigation: Jetpack Navigation Compose
Project Structure
Architecture
Both platforms follow the MVVM (Model-View-ViewModel) pattern:
Data Models
Project
LineItem
SimulationResult
Risk/Variance Multipliers
Getting Started
iOS
- Open
ios/RiskEstimator/RiskEstimator.xcodeproj in Xcode
- Select your target device or simulator
- Build and run (⌘R)
Requirements:
- Xcode 14.0+
- iOS 14.0+ deployment target
- Swift 5.0+
Android
- Open
android/RiskEstimator in Android Studio
- Sync Gradle files
- Select your target device or emulator
- Build and run
Requirements:
- Android Studio Hedgehog or later
- JDK 17
- Android SDK 26+ (min) / 34 (target)
Monte Carlo Simulation
The simulation engine uses the Box-Muller transform to generate normally distributed random values with optional skew toward overages (reflecting real-world project behavior).
Algorithm
Convergence Detection
The engine runs adaptively:
- Minimum: 1,000 iterations
- Maximum: 10,000 iterations
- Stops early if P80 estimate stabilizes (standard error < 0.5%)
PDF Generation
Quotes are generated for client presentation:
- Professional formatting with project details
- Cost breakdown by category
- Profit margin folded into category costs (hidden from client)
- No Monte Carlo jargon - just clear pricing
- Exportable via platform share sheets
Storage
Both platforms use local-only storage:
- iOS: UserDefaults with Codable serialization
- Android: SharedPreferences with GSON
No cloud sync, no server required - works fully offline in the field.
Current Status
Version: 1.1 (MVP Feature-Complete)
Completed
- Full CRUD on projects
- Monte Carlo engine with convergence detection
- 5-tier risk system
- Duration and travel uncertainty
- Cost breakdown by category
- PDF export
- Multi-region/currency support
Roadmap (Phase 3)
See PROGRESS.md for detailed roadmap.
License
Proprietary - All rights reserved.
Verified Changes
The web app publishes /.well-known/changes.json and /changes.json (verified-changes/0.1). See web/README.md.