A Numerical Approach for Assigning a Reputation to Users of an IoT Framework