How do they record your thinking time, do they take a brain snapshot?! As writing new code represents 30% of all time...
I cannot work on upwork as I ponder problems before I solve them; I can have quite large amounts of time without keystrokes or my laptop might be asleep. I would refuse it anyway if it was required though.
Took me about 2/3 of a day but only about an hour of programming the rest was spent thinking and sketching out the problem and test cases on paper.
Program ran first time and ran with 100% uptime for the duration
For what you describe, hourly billing will not work anyway. Some kind of fixed type of payment, or perhaps retainer + hourly billing for actual typing/research would be more appropriate. I think, both can be setup on Upwork (as two separate projects)