Calculating a Confusion Matrix
Your approach is not correct. 

Some hints that should help you to understand your mistakes 


the sum over all elements of the confusion matrix should be 1000 in your case. 
TPR=TP / Num_positives


Good guide to confusion matrix terminology