import math from .config import kfet_config def to_ukf(balance, is_cof=False): """Convert euro to UKF.""" subvention = kfet_config.subvention_cof grant = (1 + subvention / 100) if is_cof else 1 return math.floor(balance * 10 * grant)