The formula
Each layer resists heat by its thickness in metres divided by its thermal conductivity λ: R = d ÷ λ. Add every layer, plus the surface resistances (inside 0.13 and outside 0.04 m²K/W for a wall; 0.10 and 0.04 for a roof, where heat flows up), and the U-value is 1 ÷ the total.