Client side calcuration

The progress is just inter-mediate but this modification requires another improving tasks.