You can claim the money according to the months you stayed here after your last paid leave.