Email Record: An optimal investment and financial control model: theoretical solutions and an application.