1-If any user enter 1w2d in input field.
2-Value in this input field should get converted to total hours.
3After that I have to insert these total hours in database.
4When I will fetch total hours from database it should return 1w2d.
Possible notation are that there is one Input field named as Estimated time where user can enter 1w2d or 1W2D .This should get converted into total hours.After that I have to send it into database.
*I am feeling helpless.I don't know what to do.I know how to convert week into hours but don't have any idea that how to convert 1w2d into hours.