This content is licensed under Creative Commons Attribution/Share-Alike License 3.0 (Unported). That means you may freely redistribute or modify this content under the same license conditions and must attribute the original author by placing a hyperlink from your site to this work https://planetcalc.com/9184/. Also, please do not modify any references to the original work (if any) contained in this content.
The formula is
T is your time spent, in hours;
H is your hourly rate;
M is how much money your time worths
In order to find out how long you need to work to earn a certain amount, you can use the calculator Money to time converter