my @points = ([10,12,'HP'],[10,17,'Mana'],[10,7,'Spells']); my @need = (40, 40, 40); #### You have 30 and need 120 You need 90 more, and you gain them at 36 per hour That should take 90/36 hour(s). New value for HP: 10 New value for Mana: -2 <----------- New value for Spells: 22