import math


def calc_hist_length_per_net(batch_count, epoch_count, plot_step):
    """ Calculate length of history arrays based on batch_count, epoch_count and plot_step. """
    return math.floor((batch_count * epoch_count) / plot_step)