我怎样才能算出月薪 [英] How can i calculate monthy salary

查看:64
本文介绍了我怎样才能算出月薪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我需要用正常的计算方法计算月薪。我的问题是如何在他上班的日子里计算工资。例如:3月总工作日为31天,员工在场20天,11天休假。他有3片休闲叶子。那么我如何用这些标准以及正常的工资计算来计算工资。帮我一些代码和链接,

Hi,
I need to calculate monthly salary with the normal calculations like allowances. My Question is how to calculate the salary with the days he came to work. Eg: total working days is 31 for march and an employee present for 20 days and 11 days took leave. He has 3 casual leaves. Then how can i calculate the salary with these criterias and also with normal salary calculations. Help me with some code and links,

推荐答案

月薪>月薪/总数。当月的天数*(工作日数+带薪休假)

已支付的假期可以计算为,

Salary for the month = Monthly Salary / Total no. of days in the month * (days worked + paid leaves)
paid leaves can be calculated as,
if Leaves taken > available leaves<br />
  Paid Leaves = Available Leaves<br />
else<br />
  Paid leaves = Leave Taken





现在你需要更新可用的叶子。

可用叶子=可用叶子 - 支付叶子



这是所有简单的数学!您只需要编写适当的语言语法,以您编写的任何语言实现它。



Now you need to update the available leaves.
Available Leaves = Available Leaves - paid Leaves

This is all simple Maths! You just need to write proper language syntax to implement it in whatever language you are coding.


看起来像家庭作业。顺便说一下,它与C#或.Net无关。你需要公式来计算薪水并用C#写出来,不管怎么说都不难。



除此之外,你所写的也不符合逻辑。在31天内,有人上任20天,休11天。 goog我希望也有周末:)。



谷歌是你的朋友,尝试搜索 [ ^ ]我相信你可以找到你可以从中获取灵感的地方。 :)
Looks like homework. And by the way it has nothing to with C# or .Net for that matter. You need the formula to calculate salary and write it in C# which shouldn't be difficult anyways.

Apart from that, what you wrote is also not logical. Out of 31 days, someone comes to office for 20 days and takes leave of 11 days. googI expect there are weekends as well :).

Google is your friend, try to search [^]and I am sure you fill find where you can take inpiration from. :)


Hello Gowtham,



我的建议是将基本工资除以一个月内的天数然后乘以它按照非工资离开的数量并从总工资中扣除该金额。



例如

员工John Kerry的工资结构为(基本5000.00 + HRA 2500.00 +津贴1500.00 +费用750.00 = 9750.00)。他已经在3月份离开了13天,那些是非付费的叶子然后他3月的工资将是



每日基本工资 5000/31 161.29
每日基本工资x叶子 161.29 x 13 2096.77
总工资包括变量 9750.00 9750.00
3月总薪资 9750.00 - 2096.77 7653.23






希望这会有所帮助,如果是,那么请接受并投票给答案。如有任何疑问/问题,欢迎随时提出。



谢谢&问候

RDBurmon.Sr.Software工程师
Hello Gowtham ,

My suggestion is to divide basic salary by number of days in a month and then multiply it by number of non-paid leaves and deduct that amount from total salary.

For Example
Employee "John Kerry" has salary stucture as (Basic 5000.00 + HRA 2500.00 + Allowances 1500.00 + Expenses 750.00 = 9750.00) . And He had taken leaves in March for 13 days and those are non paid leaves then His salary for March would be

Basic Salary Per Day5000/31161.29
Per day basic salary x Leaves161.29 x 13 2096.77
Total Salary including variables 9750.009750.00
Total Salary for Mar9750.00 - 2096.77 7653.23



Hope this helps , If yes then plz accept and vote the answer. Any queries / questions on this are always welcome.

Thanks & Regards
RDBurmon.Sr.Software Engineer


这篇关于我怎样才能算出月薪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆