generic way of calculating standard/optional/not available