UK/Ireland shoe sizes is based on the lastlength in barleycorm ( = 1/3 inch) and is zero-point based (smallest size equals zero).
Formula from inches
(3 x Last length in inches) - 25
Formula from centimeters
(1.1811023622047 x Last length in cm) - 25