get13mp: Compute monthly accrued 13th month pay

get13mpR Documentation

Compute monthly accrued 13th month pay

Description

13th month pay is pro-rated to the number of months the employee is employed for the year. This is then distributed equally to all months of employment.

Usage

get13mp(theObject, sal)

## S4 method for signature 'Employee'
get13mp(theObject, sal)

Arguments

theObject

Employee-class object

sal

a numeric vector of length 2

This contains 2 monthly salaries of the employee. The first one is salary before annual increase while the second one is the adjusted salary.

Value

a data.frame with 12 rows and 3 columns representing the accrued 13th month pay per month

Each row represents a month. The columns are:

ID

character string representing the unique identifier of the real employee

month

integer value representing the month

mp

numeric value defining the accrued 13th month pay

Functions

  • get13mp(Employee): Compute 13 month pay


basilrabi/mansched2 documentation built on May 19, 2023, 9:51 p.m.