That's... not really straightforward. The voltage depends on a lot of variables, like batter manufacturer, battery type, temperature, current draw, etc.. You'd need to ask the specific battery type to get accurate readings. Also, how are you going to display percentage? Battery discharge doesn't have a linear falloff, they follow a negative cubic curve generally. Are you going to convert all of these curves into a linear percentage?
If you want to get accurate battery voltage curves, I'd recommend going to all battery manufacturers and getting the datasheet for all AAA batteries in order to not provide misleading max voltages and discharge rates. They vary in what their voltages are. Some are 1.6V, some are 1.3-1.4V, some have steeper discharge curves than others. Example,
here's duracell's datasheets.
The min voltage, however, depends on presumably software-defined values *when it checks*, different from the hardware's min voltage (ex, running at 0.00V is perfectly fine if the calc doesn't check the voltage reading since it doesn't take into account that it is running off of USB power).