added some math 


Signed-off-by: JosephSchechter <fuzzyslipers75+github@gmail.com>