Questions about schedule E, I converted my property to a rental how do I divide the expenses?

The property was used as my residence, when I moved out it took me 1 week cleaning and painting before posting for rent, it was empty for couple months and then it was rented. How do I divide the expenses? number of days since I posted for rent/total of days in the year? Thanks