Anyone know how to calculate partial monthly salary?

For Eg. your salary RM2000, and you work for 2 weeks, or 10 working days.

So how will the HR will calculate your salary, how many days it will divide? 20 days, 26days or 30 days.

For sure HR won't give you RM1000 as your paid, it will always unfair to those just work partial of the month or take unpaid leave.

Mind to share what basic your Co will use to calculate? And is there any standard of calculate partial month salary?

**How to calculate partial monthly salary**, It is fair?