def decimal_to_binary(number):
    """
        This function calculates the binary of the given decimal number
        :param number: decimal number in string or integer format
        :return : string of the equivalent binary number

        Algo:
        1. Divide the decimal number by 2. Treat the division as an integer division.
        2. Write down the remainder (in binary).
        3. Divide the result again by 2. Treat the division as an integer division.
        4. Repeat step 2 and 3 until result is 0.
        5. The binary value is the digit sequence of the remainders from the last to first.
    """
    if isinstance(number, str):
        number = int(number)
    binary = []
    while number >= 1:
        remainder = number % 2
        binary.append(remainder)
        number = number // 2

    return "".join(map(str, binary[::-1]))