You should check the resignation and firing clauses. If you can resign with prior notice, i don't think it will be a problem.
They might have adapted the dates accoring to you work and residence permit.
So check, salary, allowances, holidays and resignation clauses.