calculate aws instance amount for a given account id