> For the complete documentation index, see [llms.txt](https://docs.pockethrms.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pockethrms.com/faqs/cloud-portal/settings/payroll/pay-settings.md).

# Pay Settings

### 1. What to do if I get error ‘Last working date allowed only between’ some date range?

### How to change separation settings for allowed date range of last working dates?

**Step 1**: Log into the cloud portal, go to the ‘Settings’ menu and under the ‘Payroll’ tab.

![](/files/W1G9vj03BgNVSNCdknyw)

**Step 2**: Scroll down to the ‘Pay Settings’ subtab and click on the ‘Separation Settings’ option.

![](/files/oZNIX0Me4piwmkbyjoFu)

**Step 3**: Set ‘No. of months up to which separation date can be given’ to ‘999’ or other required value, make other required changes and click on the ‘Save’ button. The last working day’s date range will be updated accordingly.

![](/files/ehqoIiq0J09PyNI4AZ5O)

**Path**: Cloud portal > Settings > Payroll > Pay Settings > Separation Settings > set ‘No. of months up to which separation date can be given’ to ‘999’ > other required details > Save

**Link**: <https://cloud.pockethrms.com/Settings/Employee/Index?module=payroll&submodule=SeparationSetting>

For any queries, contact <support@pockethrms.com>

### 2. How to calculate gratuity for employee? or How to set formula for gratuity calculation?

**Path**: Cloud Portal > Settings > payroll > Pay Settings > Gratuity > select required details > Save

**Step 1**: Log into the cloud portal, go to the ‘Settings’ menu and click the ‘Payroll’ tab.

![](/files/5JddLTH2wYPqT3qxEekQ)

**Step 2**: Under the ‘Pay Setting’ subtab, select the ‘Gratuity’ option.

![](/files/v80dPKLN29MOZedbZJNc)

**Step 3**: Select Category, Number or Years, Working Days (working days in a month, considering the week off in working days or not as required) and Pay Days as required.

![](/files/pu0bZXIRtVZ5uObtRpey)

**Step 4**: Click ‘Create Formula’ button and a pop-up will open. In the ‘Formula’ field select the salary component on which the gratuity to be calculated and click on the ‘Save Settings’ button.

![](/files/jjjD2ISSPR9KpIc2700w)

**Step 5**: Select Rounding as ‘1 Rupee’ to avoid decimals in calculations, select Year Rounding as required and click on the ‘Save’ button.

![](/files/Mkjzg2RkeKp8AUHi2iEO)

**Link**: <https://cloud.pockethrms.com/Settings/Employee/Index?module=payroll&submodule=Gratuity>

For any queries, contact <support@pockethrms.com>

For any queries, connect with our agent on chat.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.pockethrms.com/faqs/cloud-portal/settings/payroll/pay-settings.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
