At the end I want auto-calculation of all the points

@Varsha, this post discussed previously should help you solve your issue: