Although learning how to invest can seem like a daunting task, putting your money to work while you sleep is a key step to gaining financial independence and retiring comfortably.

And, it doesn't have to be scary. Anyone can develop a smart investment strategy by following a three-step formula, according to Ray Dalio, a renowned investor and founder of the world's largest hedge fund, Bridgewater Associates.