# Bridge Formula Calculator Case Study

> Canonical page: https://codinghouse.biz/use-cases/truck-bridge-formula-calculator
> Language: en-US. Publisher: Coding House Studio LLC. Site map: https://codinghouse.biz/sitemap.md

**Federal Bridge Formula Calculator for Commercial Trucks**

An offline Flutter app that lets drivers and carriers check axle weights against the US Federal Bridge Gross Weight Formula before the weigh station.

- Client: Commercial Trucking Client
- Platform: Mobile
- Timeframe: 3 months
- Industries: [Logistics](https://codinghouse.biz/industries/logistics.md)
- Services: [Mobile App Development](https://codinghouse.biz/services/mobile-app-development.md), [MVP Development](https://codinghouse.biz/services/mvp-development.md)
- Solutions: [Verification & Compliance](https://codinghouse.biz/solutions/verification-and-compliance.md)
- Technologies: [Flutter](https://codinghouse.biz/technologies/flutter.md)

## About

The app calculates legal axle weights and bridge limits for commercial vehicles on US interstate highways, implementing the Federal Bridge Gross Weight formula (23 CFR 658.17).

Every calculation runs on the device, so drivers get an answer at a loading dock or a remote scale with no signal.

## Challenge

An overloaded inner axle group can fail inspection even when the gross weight is legal, and drivers need answers in places without coverage.

## Solution

A compliance engine tests every consecutive axle combination on the vehicle, including tractor, inner and outer bridges, for configurations of up to 9 axles.

BLoC keeps calculation models separate from widgets, Formz validates every input and numeric keyboard controls speed up entering many fields on a phone.

## Main functionality

- **Bridge formula calculator**: Maximum weight for any group of 2 to 9 axles.
- **Full compliance check**: Every consecutive axle combination tested.
- **Axle classification**: Single and tandem axle limits applied automatically.
- **Two result views**: A roadside checklist and a detailed table.
- **Reference guides**: Measuring rules and exceptions in the app.

## Results

- Drivers check weight distribution before the weigh station
- Inner group violations caught under 80,000 lb gross
- Works the same with or without coverage

- 100%: offline, no cell coverage needed
- 2 to 9: axles per group checked
- 9: axles supported

## Technical implementation

- All math in client side Dart with no backend
- BLoC state management with recalculation on every change
- Form validation for feet, inches and weights before any calculation

## Screenshots

- Compliance results for each bridge: https://codinghouse.biz/_next/static/media/compliance_results_valid.d0cba36b.webp
- Calculator hub: https://codinghouse.biz/_next/static/media/calculator_hub.afb77533.webp
- Entering axle weights and spacing: https://codinghouse.biz/_next/static/media/compliance_axle_weights.53c7de57.webp
- Condensed pass or fail summary: https://codinghouse.biz/_next/static/media/compliance_results_condensed.05ac5644.webp
- Axle group guidelines: https://codinghouse.biz/_next/static/media/compliance_guidelines_tips.7a8e0069.webp

## Contact

- Email: studio@codinghouse.biz
- Book a 30 minute call: https://calendly.com/codinghouse/30min
- Contact form: https://codinghouse.biz/#contact
