import math


def round_to_next_target(hosts, raw_target):
    """Round up from a target percentage to the next achievable value.

    When the number of hosts is low, there's a minimum jump in percentage
    from host-to-host. This rounds up to the next value so that the user isn't
    surprised by the deploy going further than expected from the prompts.

    """
    minimum_step_size = 1. / len(hosts) * 100
    return int(math.ceil(raw_target / minimum_step_size) * minimum_step_size)