The Trinity Study done in 1996 came up with the 4% rule as a simple way to determine your FI#. The creator of this rule has started to advocate more than 4%, but I would rather be conservative. If you would like, you can be conservative as well.
Next, take your annual spending multiply it by 25
$40,000 x 25 = $1,000,000