Pergunta de entrevista da empresa Micron Technology

Write a python program to calculate simple interest given the user types all the related data in a single string "5000 principle, 5% rate annually, 4 years and 6 months"?