Add Calculator from AOSPA

Change-Id: I7d25b6e9554922c5904f092b167ef216520453f2