How to stretch salaries to end of the month

PAYE Tax Calculator

Note: The results are not exact but very close to the actual.