Investors & landlords

How do I calculate the tax due on a capital gain?