Entry into the territory is not authorised where an applicant has no right to remain, where he or she has not requested to be allowed to remain for the purposes of the appeal procedure provided for in , or where a court or tribunal has decided that he or she should not be allowed to remain pending the outcome of such an appeal procedure. In such cases, to ensure continuity between the asylum procedure and the return procedure, the return procedure should also be carried out in the context of a border procedure for a period not exceeding 12 weeks. That period should be counted starting from the time the applicant, third-country national or stateless person no longer has a right to remain or is no longer allowed to remain.