It's called a calculator. (you divide the video size by your upload speed. Consider adding a .75 penalty to account for errors)
However, even after upload, Youtube transcodes videos and that depends on things like queue, video format, and length and cannot be easily estimated.