I want to pass value of TOTAL STORY DONE and TOTAL STORY CREATED

Hi, I need help. I want to pass those 2 values: total story done, and story created to my own apps (SaaS) so that, every time each story has been done, it is automatically updates & calculate % of (story done/ total story created * 100). I am confused as where I should start first.