Please follow
https://www.irs.gov/newsroom/plan-ahead-for-vacation-home-rentals
.