you calculate the list incorrectly: You need currently make wihtout an upgrade 0 but actually you start with times one...