Oes the software program belong to the individual programmer or to the company?

If an individual programmer works on developing a new software program on his/her personal laptop while working at his/her office, does the software program belong to the individual programmer or to the company? Why or why not?

(I prefer that the software belongs to the company. But you can write the other way.)