What if I forgot to apply for a residence permit 30 days within my arrival in China?

You should apply for a residence permit 30 days within your arrival in China, otherwise your stay will be considered 
illegal and you will be fined (500 CNY/day) and even expelled by local authority.