MIN/MAX custom SQL expressions would allow users to define more sophisticated billing plans / metric rules. PR for the feature and documentation for this already created here:
Please kindly review.