Calculates the sum of the primary amounts of a list of BillData.
double sumBillDataPrimaryAmount(List<BillData> items) => sumOf<BillData>(items, (item) => item.primaryAmount);