Added calc function in jQuery