Modify level formula

#82 has been completed