I would do it this way:

If temp < 100 then
Duty = 25
Else
Duty = 25 + ((temp -100)*3)
Endif

Cheers

Al.