write off or bad debt

i have a customer, who has went bankrupt. My question is what is the difference between write off and bad debt ? I assumed this was the same.

 

Thank you