Inspiration

Over 80% of university student side-hustles—from dorm bakeries and custom campus merch to freelance video editing—fail within the first 60 days. On paper, students assume: "If my raw ingredients cost $14 and I sell for $45, I make $31 profit." In reality, hidden platform take-rates (Stripe, PayMe, FPS cuts), uncompensated labor hours, exam-week demand slumps, and supply spoilage quickly turn their ventures insolvent.

As college students ourselves, we built MicroCFO to serve as an autonomous fractional Chief Financial Officer (CFO). Inspired by the SMBP FinHack theme "Small Money, Big Plan", MicroCFO transforms unorganized side-gigs into sustainable, resilient micro-businesses through corporate-grade unit economics and multimodal AI.

What it does

  1. Corporate Unit Economics Engine: Calculates true contribution margin per unit, factoring in raw materials (COGS), variable packaging, and payment gateway take-rates (percentage + fixed processing fees).
  2. Break-Even Volume & Solvency Solver: Dynamically determines the exact sales threshold required to cover monthly overhead (Canva/Adobe subscriptions, equipment depreciation), warning students if a business model is insolvent ($Q_{BE} = \infty$).
  3. Student Real Hourly Wage Reality Check: Calculates the student's true return on invested time (Net Profit / Hours Worked), comparing it directly against campus statutory minimum wage benchmarks (HK$60/hr, $15/hr, ₹200/hr).
  4. AI Idea-to-Blueprint Generator: Students can type any raw idea in plain text (e.g. "Dorm cold-brew coffee delivery"), and Google Gemini AI automatically calculates realistic campus pricing, COGS, monthly overhead, and achievable order volumes.
  5. Gemini 2.0 AI Risk Auditor & Stress-Tester: Evaluates the active business model for hidden campus blindspots (midterm week demand drops, price shocks) and tests "What-If" crisis scenarios.
  6. Multimodal Receipt OCR & Operating Ledger: Scans physical grocery/packaging receipts, extracts individual line items with Gemini Vision, categorizes them as Fixed vs Variable costs, and syncs them into an offline-first Cash Ledger.
  7. 1-Click Pitch Deck Summary Export: Generates an executive 1-page financial feasibility report that students can print to PDF or copy as formatted Markdown for grant applications.

How we built it

  • Framework: Next.js 16 (App Router) + React 19 for high-performance server/client boundaries.
  • Styling & Design System: Tailwind CSS v4 with PostCSS and custom dark slate/emerald design tokens.
  • AI & Multimodal Intelligence: Official Google GenAI SDK (@google/genai) leveraging gemini-2.0-flash for low-latency JSON schema structured responses and multimodal receipt vision OCR.
  • Math & Financial Engine: Pure TypeScript corporate financial formulas with automated unit test suites (npm test) verifying contribution margins, break-even thresholds, and price sensitivity matrices.
  • Database & Persistence: Hybrid architecture with local persistence (localStorage) fallback and Supabase PostgreSQL schema (supabase/schema.sql) for multi-device cloud synchronization.
  • Installability: Native Next.js 16 Progressive Web App (PWA) manifest and custom service worker for offline accessibility on mobile and desktop.

Challenges we ran into

  • Windows Sandbox File Locking: Turbopack build subprocesses encountered Windows directory locks during static prerendering. We resolved this by configuring stable Webpack builds and single-thread page generation.
  • Dynamic FX Parity: Converting prices across HKD, USD, INR, EUR, and GBP without breaking mathematical ratios required building a normalized USD-base exchange rate converter with adaptive slider bounds.
  • Zero-Failure Pitch Fallbacks: In live hackathon pitches, network latency can cause AI timeouts. We engineered a contextual fallback engine so that every AI analysis and receipt scan responds gracefully with zero crashes.

Accomplishments that we're proud of

  • Complete mathematical accuracy verified through 11 passing automated test suites.
  • Real-time reactive synchronization: tuning a slider in the Simulator immediately updates the Break-Even progress bar, the AI Risk Auditor, and the Pitch Deck export.
  • Enabling students with zero financial background to understand their true cost of doing business.

What we learned

  • Deep principles of corporate accounting applied to micro-enterprises: Contribution Margin Ratio (CMR), Operating Leverage, and Opportunity Cost of Labor.
  • Implementing the latest unified @google/genai SDK with multimodal vision inputs.

What's next for MicroCFO

  • Direct integration with campus payment gateways (FPS and PayMe merchant APIs) for real-time automatic transaction logging.
  • Multi-member co-founder equity and profit-sharing calculator for student project teams.

Built With

  • accounting
  • break-even-analysis
  • financial-modeling
  • gemini-2.0-flash
  • google-gemini-api
  • multimodal-ai
  • next.js-16
  • ocr
  • postgresql
  • pwa
  • react-19
  • supabase
  • tailwind-css
  • typescript
  • vercel
Share this project:

Updates

Submission history