Entitlement to and calculation of writing-down allowances Entitlement to and calculation of writing-down allowances 507Entitlement to writing-down allowance 508Basic rule for calculating amount of allowance 509Calculation of allowance after sale of relevant interest 510Allowance limited to residue of qualifying expenditure attributable to dwelling-house Entitlement to and calculation of writing-down allowances