Rental Conversion Date with Atypical timeline

Converted home to rental and have questions on whether I can deduct a repair based on date of conversion. What is tricky about date is I lived there while showing it.

 

Mid June listed for lease (while living there).

Discovered issue with shower pan in extra bathroom after showing it in late June

July 1 lease signed by tenants, assured them repair would be done before move in

July 1 - 14  - repairs completed

July 15 - lease effective date

July 17 - invoice date for repairs

 

Can I deduct this?

 

Side question - the repair involved tearing out tile, replacing shower pan, re-tiling bathroom. Does the re-tile count as improvement? If so, if I got my contractor to split out cost of tear out, shower pan from the re-tile, can I deduct the repair part only? Thanks!