Please how many days can I be allowed to stay in china after my resident permit expires, can I stay 5 more days
The short answer with China is no, you can't overstay without penalty.
I don't know exactly what the typical penalty is for 5 days, or if it is different for your permit type.
- But no, they don't generally have any "free" or "grace period" on visa dates.
At best you'll have a lot of hassle when you exit and pay a fine before you can go. At worst you might be jailed for some days and blacklisted for some years.
For a more official statement rather than just my word for it, here is the US State Department page on travel to China. Go down to the section "Entry, Exit and Visa Requirements". And here is another State Department page with more details on the same.
- If you know you want a short extension for a specific reason, go to the police office that issued the permit and request the extension.
If it is requested far in advance, for a very short length, and for a specific event you can show evidence for, they might well give it to you.