How To Change "Depends on Payment Days" field value in component based on employee joining and outgoing date?

I need to generate salary slip where new joining and outgoing employees will get “Stationary”
amount based on “Depends on Payment Days” and others employees will get fixed amount.
how can I achieve that?
Thanks
Capture10