How to manually calculate AUC and Accuracy
For accuracy, TP+TN/total is it right way to calculate?


If your problem is binary classification, then yes.


  How to calculate AUC using some formula? What are the parameters
  required and what formula to use?


Check this question.