A young man, returning home from vacation on his bicycle, traveled 246 km and spent on this journey one day more than half of the remaining days until the end of his vacation. Now, he has two options to cover the remaining 276 km to arrive home exactly on time: either travel km more daily than initially planned, or maintain the original daily distance and exceed it by km only on the last day of the journey. How many days before the end of his vacation did he start heading home, given that the number of days is an integer?