I have a simple business rule that would be very easy to be implemented in a imperative way, but in a functional paradigma I am struggling with (due lack of knowledge).