How much time did it take you to write the letter?
How much time = How long
问多少一般用how many /much ,用哪个根据后面的词是否可数等判断.
仅供参考