modified calc formula