### Example Calculation Source: https://docs.frappe.io/hr/leave-management/help-articles/how-to-sanction-leave-encashment-amount-in-salary-slip A practical example showing the calculation for 5 days of leave at 1,000 per day. ```text 5 x 1,000 = 5,000 ``` -------------------------------- ### Profit Calculation Formula Source: https://docs.frappe.io/hr/project-profitability-report Determines project profit by subtracting the fractional cost (gross pay adjusted by utilization) from the sales invoice grand total. ```text Profit = Grand Total - Gross Pay * Utilization ``` -------------------------------- ### Navigate to Leave Encashment Source: https://docs.frappe.io/hr/leave-management/help-articles/how-to-sanction-leave-encashment-amount-in-salary-slip Path to access the Leave Encashment module in the Frappe HR interface. ```text Home > Human Resources > Leaves > Leave Encashment ``` -------------------------------- ### Goal Hierarchy Progress Calculation Source: https://docs.frappe.io/hr/goal Visual representation of how parent goal progress is calculated as an average of its child goals. ```text parent (12.5%) |_ child1 (0%) |_ child2 (25%) |_ child3 (50%) |_ child4 (0%) ``` -------------------------------- ### Fractional Cost Calculation Formula Source: https://docs.frappe.io/hr/project-profitability-report Calculates the fractional cost by applying the utilization rate to the gross pay from the salary slip. ```text Fractional Cost = Gross Pay * Utilization ``` -------------------------------- ### Define Conditional Tax Slab Rules Source: https://docs.frappe.io/hr/income-tax-slab.html Use these expressions in the Tax Slab table to conditionally apply tax rates based on employee attributes or salary data. ```python // Apply tax if employee born between 31-12-1937 and 01-01-1958 (Employees aged 60 to 80) date_of_birth > date(1937, 12, 31) and date_of_birth < date(1958, 01, 01) // Apply tax by employee gender gender == "Male" // Apply tax by Salary Component base > 10000 // Annual Taxable income is greater than 5 lakhs annual_taxable_earning > 500000 ``` -------------------------------- ### Calculate Payment Days Source: https://docs.frappe.io/hr/leave-management/help-articles/leave-calculation-in-salary-slip Formula for determining payment days based on total working days, leave without pay, and half-day leave. ```text 26 - 2 - 0.5 = 23.5 ``` -------------------------------- ### Utilization Calculation Formula Source: https://docs.frappe.io/hr/project-profitability-report Calculates employee utilization based on billed hours, working days, and standard working hours. ```text Utilization = Total Billed Hours / (Working Days * Standard Working Hours) ```