The capital gain has no relation with your notes.
The capital gain is calculate as:
499,000-359,000=$140,000
You can also deduct the closing cost, commission, you will need to add back the depreciation.
The depreciation will be taxed at 25% since this is a rental property.
The 140,000 less the closing cost and commission will be taxed at 15% max: 140,000*.15=$21,000max
State tax is extra.
The better approach is moving back, use the house as primary residence for 2 years, you can exclude the gain up to $250,000 for single, or $500,000 for MFJ.