File size: 2,164 Bytes
3b2b505
1683d9b
 
6bf9f4b
c5ac05c
3b2b505
 
89ac4ad
3b2b505
 
73c78bc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d4d782c
 
 
 
 
73c78bc
 
 
 
 
 
768f258
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
---
title: Net Salary Calculate
colorFrom: green
colorTo: green
emoji: 💵🤑🫰
sdk: streamlit
app_file: app.py
pinned: false
---

# Salary Calculator

This Salary Calculator is a Python-based command-line tool designed to help users determine the additional amount needed on top of their desired salary to account for taxes. It takes into consideration factors such as current salary, desired increment, daily travel costs, and the number of physical workdays per week.

## Getting Started

### A. Prerequisites

- Conda environment manager
- Python version 3.11

### B. Setting Up the Environment

1. **Create and activate a Conda environment**:
   - Create: `conda create -n salary_calc_env python=3.11 -y`
   - Activate: `conda activate salary_calc_env`
   - **Note**: You can replace `salary_calc_env` with your preferred environment name.

2. **Install required packages**: 
   ```bash
   pip install -r requirements.txt
   ```

### C. Running the Application

- Using default values:
  ```bash
  python salary_calculator.py 90000
  ```
  This uses default values of `desired_increment_percentage=0.3`, `daily_cost_of_travel=1500`, and `physical_days_per_week=5`.

- Using custom values:
  ```bash
  python salary_calculator.py 220000 --desired-increment-percentage 0.10 --daily-cost-of-travel 2000 --physical-days-per-week 3
  ```
F
- For help and to see all available options:
  ```bash
  python salary_calculator.py --help
  ```

## Features

- Calculates the additional amount needed to achieve the desired net salary after tax deductions
- Considers factors like current salary, desired increment, daily travel costs, and work schedule
- Provides a detailed breakdown of the calculation results
- Offers flexibility to use default values or specify custom inputs

## TODO
- RestAPI server
- Streamlit application
- workflow to deploy in hugging face

## Contributing

Feel free to fork this project and submit pull requests with any enhancements or bug fixes. For major changes, please open an issue first to discuss the proposed changes.

## License

This project is licensed under the MIT License - see the [LICENSE](LICENSE.md) file for details.