Earnings Calculator

The Earnings Calculator is a web application that allows users to calculate their monthly earnings, taking into account various factors such as earnings from clients, employee salaries, and miscellaneous costs. The application also provides a summary of monthly profits and allows users to save data for each month.

Features

  • Clients and Earnings: Users can input the number of clients they have and specify the earnings for each client. Additionally, users can define the percentage of earnings they receive from each client.

  • Reductions: Users can input information about their employees, including the number of employees and their salaries. They can also specify miscellaneous costs.

  • Monthly Profit Calculation: The application calculates the total earnings, total employee salary, total miscellaneous costs, and total reductions. It then calculates the monthly profit by subtracting the total reductions from the total earnings.

  • Monthly Data Storage: Users can select a month, input data, and save it. The saved data includes total earnings, total employee salary, miscellaneous costs, total reductions, and monthly profit for each month. The data is stored for each month and can be viewed at any time.

  • Salary Calculator (Optional): Users can calculate the prorated salary of an employee based on their monthly salary, start date, and end date. This feature is helpful for calculating employee salaries based on their joining date.

Prerequisites

  • Modern web browser with JavaScript enabled.

Usage

  1. Open the "Earnings Calculator" in your web browser.

  2. Clients and Earnings:

    • Enter the number of clients you have.
    • For each client, enter their earnings in dollars and specify the percentage of earnings you receive.
  3. Reductions:

    • Enter the number of employees you have.
    • For each employee, enter their monthly salary in dollars.
    • Specify miscellaneous costs.
  4. Calculation and Net Profit:

    • Select a month from the dropdown.
    • Click the "Save Data" button to save the data for the selected month.
  5. Monthly Data:

    • The table displays data for all 12 months.
    • The "Total" row shows the sum of earnings, reductions, and profits for all months.
  6. Salary Calculator (Optional):

    • Click the "Open Salary Calculator" button to open the salary calculator popup.
    • Enter the monthly salary, start date, and end date.
    • Click the "Calculate" button to calculate the prorated salary.
    • Click the "Close" button to close the popup.

Built With

  • HTML
  • CSS
  • JavaScript

Author

  • KJ

License

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