Loss vs accuracy machine learning

what’s the difference between loss and accuracy? as far as i know loss is how bad a model is doing and accuracy is how well a model is doing.