dynamic investment calculator