import math


def roundup_to_num(x, target):
    """
    Round a input number up to the number that can be divided by target number
    Args:
        x: input number
        target: the number that you want to divide by.
        for example, roundup_to_num(38,5) will round 38 to the nearest number that can be divided by 5, and the return would be 40.
    """
    return int(math.ceil(x / float(target))) * int(target)