calc score on client