Whenever the commissioner in his discretion determines that a person is not liable for the tax for an entire year because of moving into the state or moving out of the state, he may prorate the amount of the tax due the state and also may require the taxpayer to prorate any exemptions on the basis of the time spent within the state. The commissioner in his reasonable discretion shall be the sole judge as to when this Code section shall apply.