Math is hard. Try based on the percentage of the year you worked multiplied times the profit that the company made during those months times your pay.
Say you worked one month, and the PS for the year was 12%. To be "fair" you would get 1% of your pay for profit sharing. Because you didn't contribute to the profit for the other 11 months.