#!/usr/bin/env python3
# Simple "How many days assuming I do dailies and use all my resin (180 per day) I need until AR X"
# This only works starting from AR40 (since I was too lazy to import more values) and until AR 56
# fill out these variables
MY_AR_EXP = 7398
MY_AR = 49
WANTED_AR = 50
# ignore everything after this just hit "Run"
ADVENTURE_RANK_EXP_TABLE = {
40: 145375,
41: 155925,
42: 167450,
43: 179925,
44: 193375,
45: 207775,
46: 223125,
47: 239450,
48: 256725,
49: 274975,
50: 294175,
51: 320575,
52: 349375,
53: 380575,
54: 414175,
55: 450175,
56: 682525,
}
RESIN_USAGE_PER_DAY = 180
EXP_PER_20_RESIN = 100
RESIN_EXP_PER_DAY = RESIN_USAGE_PER_DAY / 20 * EXP_PER_20_RESIN
DAILY_COMMISION_EXP = 500 + (4 * 250)
EXP_GAIN_PER_DAY = DAILY_COMMISION_EXP + RESIN_EXP_PER_DAY
TOTAL_EXP_REQUIRED = ADVENTURE_RANK_EXP_TABLE[WANTED_AR] - ADVENTURE_RANK_EXP_TABLE[MY_AR] - MY_AR_EXP
print("Total Exp required:", TOTAL_EXP_REQUIRED)
print("Est. days until goal AR", TOTAL_EXP_REQUIRED / EXP_GAIN_PER_DAY)