What to put on a w4

How can I figure out what to put on a W4 so that I don't owe so much when I do my taxes?