Simple percentage question

#1
Hi,

i have a question Concerning how to calculate percentage.

i have 5160 patients in total. 221 was diagnosed with heart attack.

now i want to Say how many was diagnosed with heart attack.

is it 221/4939 (5160-221) or 221/5160?
I think last is correct but spss gives ”within percentage” what does the first percentage tell compare with the other?

best regards
Gunnar