Change to_i usage to occur in the heading_interval calculation