personal funtion cal