💡 Inspiration

In the day and age that we are living, most people make financial decisions based on emotion, not data. We've all been there — impulsively buying concert tickets, not knowing if the recurring stock investment makes sense, or booking that trip with your friends. Delaying your gratification will always outplay your emotions.

From this point on, we have built Financial Risk Calculator to answer one simple question in real time: "Is this financially safe for me right now?"

This project was born from a desire to turn complex financial math into simple, actionable answers — actively guiding decisions before you make them, and giving anyone, regardless of financial background, the tools to make smarter money decisions in real time.


🔍 What It Does

Financial Risk Calculator is an Android app that serves as a real-time financial decision assistant — evaluating purchases and investments against your personal financial profile before you spend.

Input: Monthly income, age, occupation, fixed expenses Output: Risk level, health score impact, and a plain-English recommendation

  • ✅ Low / ⚠️ Medium / 🚨 High Risk
  • Financial Health Score (0–100)
  • Insight: "This purchase uses 35% of your disposable income"
  • Recommendation: Safe / Caution / Not Recommended

Real Example

User Profile: $3,200/month income | $2,000 fixed expenses | $1,200 disposable income

Decision: $300 concert ticket

Purchase Impact:    25% of disposable income
Category:           Entertainment → Wc = 1.0
Health Score:       75/100 → drops to 50/100
Risk Level:         ⚠️ Medium
Recommendation:     "Proceed with caution"

⚙️ Tech Stack

Built in Java on Android Studio — fully on-device, no internet required. The risk engine runs locally for instant results.

  • Frontend: Java + Android Studio — 4 screens: Profile Setup, Dashboard, Decision Input, Results
  • Backend: Python + FastAPI — handles AI advice generation and future data storage
  • AI: Google Gemini 2.5 Flash — generates personalized financial insights and recommendations
  • Algorithm: Multi-stage weighted scoring with category risk detection
  • Performance: < 2 seconds per financial decision analysis

The Math

Disposable Income: $$D = I - E$$

Purchase Impact: $$P = \frac{A}{D} \times 100$$

Financial Health Score: $$H = 100 - (P \times W_c)$$

Category Risk Weight $W_c$
Necessities 0.5
Entertainment 1.0
Gambling 2.0

🚧 Challenges We Ran Into

  • Category-weighted scoring — equal dollar amounts across different spending categories required custom risk logic built from scratch
  • Backend telecommunications — syncing the Java frontend with Python + FastAPI backend introduced significant integration overhead
  • HooHacks time constraints — full build, testing, and polish executed under hackathon deadline pressure
  • Live computation — achieving real-time on-device risk processing without latency or runtime crashes

📊 Impact

Pre-decision risk analysis — risk computed and delivered before the transaction occurs, not retroactively tracked

Personalized financial modeling — every score calculated against YOUR disposable income and expense profile

Instant computation — full risk analysis in < 2 seconds, no spreadsheets or financial advisors needed

Actionable output — returns a direct recommendation: proceed, caution, or stop


🏆 Results

On-device risk engine — fully operational, delivering personalized risk output in < 2 seconds

Unified decision system — single pipeline handling short-term purchases and long-term financial decisions

Color-coded UI — risk levels and health scores rendered instantly readable across all user profiles

Financial logic in Java — disposable income, savings rate, and category risk weighting implemented end-to-end

Gemini 2.5 Flash integration — AI-generated insights delivered per financial decision in real time

Full MVP shipped — complete, functional build delivered within the HooHacks hackathon window


🚀 What's Next for Financial Risk Calculator

  • AI-generated financial advice via Python + FastAPI
  • Investment guidance — risk-scored insights on stocks, ETFs, and portfolio diversification
  • Benchmark comparisons against similar age/income profiles
  • Spending history and trend tracking over time
  • Proactive alerts when approaching monthly risk thresholds
  • iOS version for broader reach

Built With

Share this project:

Updates