How are Story Points Done calculated ?

The story points done are automatically calculated based on the status of the story .

That is if the status of a story = 'Done'

then

Story points done = Story points total

Else

Story points done = 0