def calc_growths(prev_num, curr_num):
    """Calculate the percentage growth of curr_num over prev_num."""
    if prev_num == 0:
        return -1  # -1 represents undefined growth.
    else:
        return 100 * (curr_num - prev_num) / prev_num