Selling foreign property on H1B

I moved to the USA 5 years ago and am currently living and working on H1B. I own a property in my home country which I have been leasing to private tenants for the last 5 years.

 

I now want to sell the property in my home country, as I may be soon receiving a green card.

 

It appears I have to pay capital gains tax on the rise in value of the property. How is this calculated? Are any deductions available? Can the capital gains tax I pay in my home country be used as a deduction against any US capital gains tax?

 

Thanks