question: public static double trainerLevelToMaxPokeLevel ( int trainerLevel ) { return Math . min ( trainerLevel + 1.5 , 40 ) ; }
target:  Maximum pokemon level for a trainer, from the trainer level. That's usually trainerLevel + 1.5, but the maximum is 40 (http://pokemongo.gamepress.gg/power-up-costs).