Where a local planning authority—
the applicant, if aggrieved by the decision, may appeal to the Secretary of State.
A person who has made such an application may also appeal to the Secretary of State if the local planning authority have done none of the following—
within the relevant period from the date of the receipt of the application, or within such extended period as may at any time be agreed upon in writing between the applicant and the authority.
In this section "the relevant period" means—
For the purposes of the application ... of sections 22(1) and 63(7)(b) in relation to an appeal under subsection (2) it shall be assumed that the authority decided to refuse the application in question.
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .