import math


def _calculate_target_load(num_reqs: int, rate: float = 100, baseline: int = 0) -> int:
    """ Given the rate and number of URLs in data set, calculate how many URLs to send in this load"""
    if baseline:
        target_num_reqs = baseline * (rate / 100)
    else:
        target_num_reqs = num_reqs * (rate / 100)
    return math.ceil(target_num_reqs)