A program to calculate the expected fraction of mass of AGB stars per all stars for a galaxy