import math


def calc_stats(base_stats, level):
    """Calculate a Pokemon's stats based on its base stats and level"""
    stats = []
    stats.append(math.floor((31 + 2 * base_stats[0] + 21) * level/100 + 10 + level))

    for i in range(1, 6):
        stats.append(math.floor((31 + 2 * base_stats[i] + 21) * level/100 + 5))

    return stats