Programming advice for Southeastern Massachusetts

I'm building a thermostat, using a design from another fellow. I want to add a variable for adding a maintenance band so I can adjust when the furnace will begin heating. I have very little experience in C programming and added what i thought was needed. Int compiled OK, but has some problems. I'm looking for a mentor to help me along.

Why not post your code in the Programming section and get people to look it over?