private static int calculatePadding(double payment){
        int padding = 0;
        if(payment<1.0 && payment>0.0) padding = 41;
        else if(payment>=1.0 && payment<10.0) padding = 43;
        else if(payment==10.0) padding = 45;

        /*
        else if(payment < 0.0 && payment>-1.00) padding = 36;
        else if(payment < 1.00 && payment > -10.00) padding = 37;
        else if(payment==-10.00) padding = 45;
        else if(payment<-10.00) padding =42;
        */

        return padding;
    }