The WooCommerce Role-O-Matic plugin (WCRA) is a powerful tool that allows the shop admin to create "assignment rules" that dynamically assigns roles to the customers according to the amounts spent during the configured time periods or according to the purchased products.
Demo: https://codecanyon.net/item/woocommerce-roleomatic/15418671