compute ma, hly gravity value