Calculating money made per hour
I think you have written your code well! Here are some steps you can have in mind when coding:


Always comment the code, even though it is self-explanatory, it might not be in 1-5 years later. Comment so that you and others trying to help you understand what your goal was.
You can always improve your code, one way is follow DRY mindset, which is Don't Repeat Yourself. You can use functions to wrap your code, instead of using the same code in multiple places.
Learn as you go, watch others how they organize your code, and implement their structure into your code.