Deductions & credits

would capital gains apply because i didnt live there . i let my brother live there. i paid 8k for new bathroom and also 22k for a guy to make improvements. paid him 150 a week.