HL calculator