The somewhat complex allgorithm for determining the size of the payment is here:

https://www.gov.uk/winter-fuel-payment/how-much-youll-get