Expense Splitter

Inspiration

Ever had those moments after a fun day out where you're stuck trying to figure out who owes what? Yeah, been there, done that. The frustration of splitting expenses manually inspired me to create Expense Splitter. I wanted to build a simple, user-friendly tool that eliminates the hassle of calculating who pays whom, so friends can focus on enjoying their time together.

What it does

Expense Splitter is a Flask web application designed to help groups of friends evenly split expenses incurred during outings or events. Users can input the number of friends, their names, and the expenses they've incurred. The application then calculates how much each friend needs to pay or receive to balance the expenses, displaying the results in a clear and user-friendly format.

How we built it

  • Tech Stack: Flask (Python) for the backend, HTML/CSS for the frontend, and deployed on Vercel.
  • Algorithm: The app uses a simple algorithm to calculate the net balance for each friend and determines the optimal way to settle debts.
  • User Interface: A clean and intuitive interface was designed to make inputting data and viewing results easy for users.
# Example of the core calculation logic
def calculate_balances(expenses):
    total = sum(expenses.values())
    average = total / len(expenses)
    balances = {name: amount - average for name, amount in expenses.items()}
    return balances

Built With

Share this project:

Updates