If you aren't happy to try to transform the Java into B4A code, which should be pretty straightforward as I assume it is purely algorithmic, then post the Java and I'll see if it's best to bung it in a library or transform it to a B4A code module.
Good info. I have all the functions written using MuPad(a computer alg. system). I will change to basic. Here is an example of the MuPad code.
-------------------------------------
AnuityFV := proc(Rpayments,rate,Div,Years)
local a,b,c,q,q1;
begin
a:= ((1+rate/Div)^(Div*Years))-1;
b:= float(Rpayments*(a/(rate/Div)));
q:=stringlib::formatf(b,2,10);
q1:= add_comma(q);
fprint( Unquoted, 0, q1 );
end_proc:
------------------------------------------------