Capital gains

How do I find out what can be used for write offs on home improvement for capital gains? Is there a statute of time from point of sale?