I wonder what the difference is between needn't have done and didn't need to. Which one should I use when?