forginganewone
Board Regular
- Joined
- Mar 14, 2018
- Messages
- 64
Hi friends!!
I need help with another thing, so basically I have to calculate salaries monthly and have three columns in data 1) Start date for employee 2) End date for employee 3) Salary.
But it should be able to calculate salary for number of days in that month for example in row 1, start date is 16 Nov. So for Nov it should calculate 1000/30*14 since only the employee will work for only 14 days in November.
Secondly It should consider if end date and if end date is blank then it should also calculate
|+|Start Date|End Date|Salary|
|:-|:-|:-|:-|
|1|16-11-21|30-Dec-21| 1,000 |
|2|16-11-21|30-Nov-21| 1,000 |
|3|16-11-21|15-Dec-21| 1,000 |
|4|16-11-21| | 1,000 |
Sample Results
|+|Nov|Dec|
|:-|:-|:-|
|1| 467 | 1,000 |
|2| 467 | - |
|3| 467 | 500 |
|4| 467 | 1,000 |
Note* I require to sum for whole Nov and Dec for salaries falling in the month just did row on row in sample result for clarity.
I need help with another thing, so basically I have to calculate salaries monthly and have three columns in data 1) Start date for employee 2) End date for employee 3) Salary.
But it should be able to calculate salary for number of days in that month for example in row 1, start date is 16 Nov. So for Nov it should calculate 1000/30*14 since only the employee will work for only 14 days in November.
Secondly It should consider if end date and if end date is blank then it should also calculate
|+|Start Date|End Date|Salary|
|:-|:-|:-|:-|
|1|16-11-21|30-Dec-21| 1,000 |
|2|16-11-21|30-Nov-21| 1,000 |
|3|16-11-21|15-Dec-21| 1,000 |
|4|16-11-21| | 1,000 |
Sample Results
|+|Nov|Dec|
|:-|:-|:-|
|1| 467 | 1,000 |
|2| 467 | - |
|3| 467 | 500 |
|4| 467 | 1,000 |
Note* I require to sum for whole Nov and Dec for salaries falling in the month just did row on row in sample result for clarity.