Severance pay is calculated based on the employee’s length of service and the reason for termination. The formula includes severance pay, service appreciation pays (if applicable), and compensation for untaken leave or other rights as per Government Regulation No. 35 of 2021.