Need to solve this formula for my project

I'm working on modifying a tetris game for my ISU for grade 11 computer science, and I've been stuck on this one modification. The original game will level up after 20 lines cleared, but i want mine to level up at 5, then 10, 15, etc. right now i have

if (board.hasFullLines ())

{

board.removeFullLines ();

if (level < 9 && board.getRemovedLines () / 5 > level)

{

level = board.getRemovedLines () / 5;

handleLevelModification ();

}

}

This levels up at 8 lines cleared (idk why), then 15, 20, 25, etc. so 8, 7, 5, 5 or something like that. I need to modify this formula so it goes up by 5, the original is here

if (board.hasFullLines()) {

board.removeFullLines();

if (level < 9 && board.getRemovedLines() / 20 > level) {

level = board.getRemovedLines() / 20;

handleLevelModification();

}

} else {

handleFigureStart();

}

if you can post a suggestion i'll try it to see if it works, thanks!

Re: Need to solve this formula for my project