What sucks though is when companies say 4 hours but then give extra credit to projects that clearly took more than 4 hours.
I did a take home project for Netflix that didn't have a time box IIRC - but something like "no more than a few hours". The task was to code a few movie poster carousels w/o using a web framework. Basically to create your own mini-higher level framework paradigm from vanilla JS or a low-level framework like JQuery.
I spent 7 hours on it and was fairly proud of it. I got dinged for not creating a virtual DOM and instead using the actual DOM as a source of truth. I even put in my notes (which I don't think were read) that in the real world you'd probably use a virtual DOM for this, but that would be a whole project in itself. Apparently I was supposed to spend the whole weekend creating React from scratch.