Skip to content

salemaljebaly/cost-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Project Cost Calculator for Software Development

This Python script calculates and analyzes the estimated cost of a software development project, providing detailed financial insights and projections.

The Project Cost Calculator is designed to help project managers and team leaders accurately estimate the financial aspects of their software development projects. It takes into account various factors such as team composition, salaries, project duration, and additional costs to provide a comprehensive financial overview.

Key features of this calculator include:

  • Detailed cost breakdown by role (backend, frontend, mobile, database, project management, UI/UX)
  • Currency conversion between USD and LYD (Libyan Dinar)
  • Incorporation of additional costs like research, testing, and cloud services
  • Revenue and profit projections
  • Return on Investment (ROI) calculation
  • Cost distribution analysis

Repository Structure

The repository contains two main files:

  • calculate_project_cost.py: The main Python script that performs all calculations and generates the project cost report.
  • README.md: This file, providing an overview and usage instructions for the project.

Usage Instructions

Installation

  1. Ensure you have Python 3.x installed on your system.
  2. Clone this repository or download the calculate_project_cost.py file.

Running the Script

  1. Open a terminal or command prompt.

  2. Navigate to the directory containing calculate_project_cost.py.

  3. Run the script using the following command:

    python calculate_project_cost.py
    
  4. Follow the prompts to input project details.

Input Requirements

The script will prompt you for the following information:

  • USD to LYD conversion rate
  • Salary per employee in LYD
  • Project duration in months
  • Number of employees for each role (backend, frontend, mobile, database, project manager, UI/UX designer)
  • Budget for research and testing in USD
  • Minimum and maximum monthly cloud provider costs in USD
  • Expected revenue percentage

Output

The script generates a detailed report including:

  • Project overview (duration, exchange rate, expected revenue)
  • Role-based analysis (costs, revenue, and profit per role)
  • Cost summary (salaries, additional costs, total project cost)
  • Financial projections (revenue, profit, ROI)
  • Cost distribution breakdown

Example Usage

# Run the script
python calculate_project_cost.py

# Sample input
Enter the USD to LYD conversion rate: 4.5
Enter the salary per employee in LYD: 5000
Enter the project duration in months: 12
Enter the number of backend employees: 3
Enter the number of frontend employees: 2
Enter the number of mobile employees: 1
Enter the number of database employees: 1
Enter the number of project managers: 1
Enter the number of UI/UX designers: 1
Enter the total budget for research and testing in USD: 10000
Enter the minimum cloud provider cost per month in USD: 500
Enter the maximum cloud provider cost per month in USD: 1000
Enter the expected revenue percentage (e.g., 20 for 20%): 25

# The script will then display a detailed financial report

Troubleshooting

  • If you encounter a "ValueError", ensure all numeric inputs are valid numbers.
  • For any "ZeroDivisionError", check that the USD to LYD conversion rate is not zero.
  • If the script fails to run, verify that you have the correct Python version installed and that you're in the right directory.

Data Flow

The Project Cost Calculator processes data in the following sequence:

  1. User inputs project details and team composition.
  2. The script calculates costs for each role and overall project costs.
  3. Additional costs for research, testing, and cloud services are factored in.
  4. Revenue and profit projections are computed based on the expected revenue percentage.
  5. The script calculates financial metrics like ROI and cost distribution.
  6. Finally, it generates and displays a comprehensive financial report.
[User Input] -> [Cost Calculations] -> [Additional Costs] -> [Revenue Projections] -> [Financial Metrics] -> [Report Generation]

Note: All calculations are performed in both USD and LYD to provide a clear financial picture in both currencies.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages