when can you invest