create script for battery size analysis