Skip to content

A Swift app to help users calculate the daily and weekly costs of items based on their total price and usage period.

Notifications You must be signed in to change notification settings

lordcordis/Cost-Per-Week

Repository files navigation

Cost Per Week

A straightforward Swift app for calculating daily and weekly item costs, designed to help users track and manage expenses over time. This app is a helpful tool for budgeting and understanding how purchases affect finances daily and weekly.

App Store

Features

  • Item Cost Calculation: Calculate daily and weekly costs based on total cost and usage period.
  • Detailed Cost Breakdown: View total cost, cost per day, and cost per week, including add-ons like repairs.
  • Sell Item Option: Recalculate the overall balance by adding resale details.
  • Item Add-Ons: Easily include additional expenses like repairs to reflect true ownership costs.
  • Expense Overview with Graphs: A dedicated sheet provides visual insights into spending trends, including the year of purchase, purchase cost, total spent, amount sold, and overall balance.
  • SwiftUI-Based Interface: Modern, responsive UI built with UIKit and SwiftUI.

Installation

  1. Clone the Repository:

    git clone https://github.com/lordcordis/Cost-Per-Week.git
  2. Open in Xcode:

    cd Cost-Per-Week
    open CostPerWeek.xcodeproj
  3. Build and Run:

    • Use Xcode to run the app on a simulator or a connected iOS device.

How It Works

  1. Enter Purchase Details: Input the initial cost, any additional expenses, and the purchase date.
  2. Add Optional Add-Ons: Include costs for add-ons like repairs to get an accurate expense overview.
  3. Set Usage Period: Specify the intended usage period in days.
  4. Sell and Recalculate: Enter a resale value if applicable to see how selling impacts the overall balance.
  5. Expense Visualization: Review a detailed sheet with graphs that show purchase year, cost, total spent, resale amount, and balance for a full picture of your finances.
  6. View Cost Breakdown: The app displays the item’s cost per day, per week, and total, adjusted for add-ons and any sale.

Screenshots

Simulator Screenshot - iPhone 16 Plus - 2024-10-22 at 19 52 58 Simulator Screenshot - iPhone 16 Plus - 2024-10-22 at 19 53 11

Simulator Screenshot - iPhone 16 Plus - 2024-10-22 at 19 53 21 Simulator Screenshot - iPhone 16 Plus - 2024-10-22 at 19 53 27

Technologies Used

  • Swift & SwiftUI: Written in Swift, with a declarative SwiftUI interface inside UIKit containers for modern UI handling.
  • Xcode: IDE for iOS development.

Privacy

All calculations and data inputs remain local to the device. The app does not store or transmit personal data externally.

Contributing

  1. Fork the Repository
  2. Create a Branch for your feature or bug fix.
  3. Open a Pull Request with your changes.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

For support or inquiries, reach out at:

About

A Swift app to help users calculate the daily and weekly costs of items based on their total price and usage period.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages